<link href="/assets/css/admin.css" rel="stylesheet" type="text/css"/>
<link href="/assets/css/dialog.css" rel="stylesheet" type="text/css" />

<form action="/admin.php?m=item&a=update" method="post">
<div class="pad-10">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
  <tbody>
    <tr>
      <th width="100">商品名称 :<input type="hidden" name="id" value="<{$item.id}>"></th>
      <td><input type="hidden" name="id" value="<{$item.id}>"><input type="text" name="title" id="title" class="input-text" size="60" value="<{$item.title}>"></td>
    </tr>
    <tr>
      <th>所属分类 :</th>
      <td><select name="classId" id="pcid">
          <option value="">--请选择--</option>
		  <{foreach from=$class item=c}>
          <option value="<{$c.id}>"<{if $c.id==$item.classId}>selected="selected"<{/if}> ><{$c.className}></option>
		  <{/foreach}>
        </select>
        </td>
    </tr>
    <tr>
      <th>封面图片</th>
      <td><img width="300" src="<{$item.pic_url}>" style="border: 1px solid #999999;padding:1px;"><br>
        <br>
        <input type="text" name="pic_url" id="img" class="input-text" value="<{$item.pic_url}>" size="21"></td>
    </tr>
    <tr>
      <th>链接地址 :</th>
      <td><input type="text" name="item_link" id="url" class="input-text" value="<{$item.item_link}>" size="60"></td>
    </tr>
	<tr>
      <th>商品ID :</th>
      <td><input type="text" name="item_id" id="url" class="input-text" value="<{$item.item_id}>" size="60"></td>
    </tr>
    <tr>
      <th>价格 :</th>
      <td><input type="text" name="price" id="price" class="input-text" value="<{$item.price}>" size="10">
        元</td>
    </tr>
    <tr>
      <th>喜欢数 :</th>
      <td><input type="text" name="likes" id="likes" class="input-text" value="509" size="10" ></td>
    </tr>
	   <tr>
      <th>店铺 :</th>
      <td><input type="text" name="shop" id="likes" class="input-text" value="<{$item.shop}>" size="10" ></td>
    </tr>
    <tr>
      <th>浏览数 :</th>
      <td><input type="text" name="hits" id="hits" class="input-text" value="0" size="10" ></td>
    </tr>
    <tr>
      <th>发布时间 :</th>
      <td><input type="text" class="input-text" value="2012-08-25 10:34:55" size="30"></td>
    </tr>
    <tr>
      <th>更新时间 :</th>
      <td><input type="text" class="input-text" value="2012-08-25 10:34:55" size="30"></td>
    </tr>
	<tr>
      <th>点击 :</th>
      <td><input type="text" name="click" class="input-text" value="<{$item.click}>" size="4"></td>
    </tr>
    <tr>
      <th>审核 :</th>
      <td><input type="text" name="status" class="input-text" value="<{$item.status}>" size="4"></td>
    </tr>
	<tr>
      <th>排序 :</th>
      <td><input type="text" name="sort" class="input-text" value="<{$item.sort}>" size="4"></td>
    </tr>
	<tr>
      <th>保存 :</th>
      <td><input type="submit" class="input-text" value="保存" size="30"></td>
    </tr>
  </tbody>
</table>
  </div>
  </form>







